#!/usr/bin/env bash



docker build -t registry.cn-beijing.aliyuncs.com/ning1875_haiwai_image/k8s-management:v1 -f  deploy/Dockerfile  .
docker push  registry.cn-beijing.aliyuncs.com/ning1875_haiwai_image/k8s-management:v1



# 构建server
docker build -t 192.168.0.81:30002/devops/bigdevops-be-server:v1.0.0   -f  deploy/server.Dockerfile  .


# 构建alert-webhook
docker build -t 192.168.0.81:30002/devops/bigdevops-be-alert-webhook:v1.0.0   -f  deploy/alert-webhook.Dockerfile  .


# build agent
CGO_ENABLED=0  GOOS=linux GOARCH=amd64 go build -o bin/bigdevops-agent cmd/agent/main.go

# 构建alert-webhook
docker build -t 192.168.0.81:30002/devops/bigdevops-agent:v1.0.0   -f  deploy/grpc-agent.Dockerfile  .
